<!-- 头部logo -->
<template>
  <div class="logocontent">
    <a href="#">
      <div class="logoimg">
        <img
          src="../../assets/img/icon/mi-home.png"
          alt="home"
          class="homelogo"
        />
        <img src="../../assets/img/icon/mi-logo.png" alt="mi" class="milogo" />
      </div>
    </a>
  </div>
</template>

<script>
export default {
  data() {
    return {};
  },
};
</script>

<style lang='less' >
.logocontent {
    display: inline-block;
  a {
    .logoimg {
      position: relative;
      display: inline-block;
      overflow: hidden;
      width: 55px;
      height: 55px;
      background-color: #ff6700;
      img {
        position: absolute;
        padding: 0;
        margin: 3px;
        transition: 0.3s;
      }
      .homelogo {
        left: -55px;
      }
      .milogo {
        left: 0;
      }
      &:hover .homelogo {
        left: 0px;
      }
      &:hover .milogo {
        left: 55px;
      }
    }
  }
}
</style>
